import request from '@/util/request.js';

/**
 * @description 查询用户信息
 * @param {Object} data
 */
export function getUserInfo(data) {
	return request({
		url: '/user/getUserInfo',
		method: 'GET',
		data
	})
}
/**
 * @description 保存用户信息
 * @param {Object} data
 */
export function saveUserInfo(data) {
	return request({
		url: '/user/updateUserFace',
		method: 'GET',
		data
	})
}
/**
 * @description 修改用户信息
 * @param {Object} data
 */
export function addAndUpdateUser(data) {
	return request({
		url: '/user/addAndUpdateUser',
		method: 'post',
		data
	})
}
/**
 * @description 获取商家类型
 * @param {Object} data
 */
export function getBusinessTypeList(data) {
	return request({
		url: '/common/getBusinessTypeList',
		method: 'GET',
		data
	})
}
/**
 * @description 轮播图列表
 * @param {Object} data
 */
export function getBannerList(data) {
	return request({
		url: '/banner/getBannerList',
		method: 'GET',
		data
	})
}
/**
 * @description 甄选商家活动列表
 * @param {Object} data
 */
export function getTranslateActivityList(data) {
	return request({
		url: '/business/getTranslateActivityList',
		method: 'GET',
		data
	})
}
/**
 * @description 全部商家活动列表
 * @param {Object} data
 */
export function getUserBusinessList(data) {
	return request({
		url: '/business/getUserBusinessList',
		method: 'GET',
		data
	})
}
/**
 * @description 商家商家详情
 * @param {Object} data
 */
export function getUserBusinessById(data) {
	return request({
		url: '/business/getUserBusinessById',
		method: 'GET',
		data
	})
}
/**
 * @description 查询用户获奖信息
 * @param {Object} data
 */
export function getAwardInfoList(data) {
	return request({
		url: '/awardInfo/getAwardInfoList',
		method: 'GET',
		data
	})
}
/**
 * @description 查询用户剩余抽奖次数
 * @param {Object} data
 */
export function getUserRaffleNumber(data) {
	return request({
		url: '/prizeActivity/getUserRaffleNumber',
		method: 'GET',
		data
	})
}
/**
 * @description 查询此活动奖品列表
 * @param {Object} data
 */
export function getPrizeByActivityList(data) {
	return request({
		url: '/prize/getPrizeByActivityList',
		method: 'GET',
		data
	})
}
/**
 * @description 抽奖
 * @param {Object} data
 */
export function getWinningInfo(data) {
	return request({
		url: '/prize/getWinningInfo',
		method: 'GET',
		data
	})
}
/**
 * @description 查询此活动奖品列表
 * @param {Object} data
 */
export function getRollListApi(data) {
	return request({
		url: '/order/getRollList',
		method: 'GET',
		data
	})
}
/**
 * @description 全部商家活动列表
 * @param {Object} data
 */
export function getAllBusinessList(data) {
	return request({
		url: '/business/getAllBusinessList',
		method: 'GET',
		data
	})
}
/**
 * @description 全部商家活动列表
 * @param {Object} data
 */
export function queryAndSelectMerchants(data) {
	return request({
		url: '/business/queryAndSelectMerchants',
		method: 'GET',
		data
	})
}